<template>
  <table class="table table-bordered table-stripped">
    <!-- 表格标题区域 -->
    <thead>
    <slot name="to"></slot>
    </thead>
    <!-- 表格主体区域 -->
    <tbody>
      <tr v-for="(i,e) in arr" :key="i.id">
        <slot name="st" :i = "i" :e = "e"></slot>
      </tr>
    </tbody>
  </table>
</template>

<script>



import 'bootstrap/dist/css/bootstrap.css'
export default {
  name: 'MyTable',
  props:{
  arr:{
      type: Array,
      required: true
  }
  },

}
</script>


<style scoped lang="less">
.my-goods-list {
  .badge {
    margin-right: 5px;
  }
}
</style>